export function uniqueObjsArr(arr: any[][], ids: string[], strick: boolean = true) {
  if (strick) {
    let uni = new Map<string, any>()
    arr.forEach(its => {
      const identifier = its.map((it) => ids.map(id => it[id]).join('|')).join(';')
        , data = uni.get(identifier) || []
      data.push(its)
      uni.set(identifier, data)
    })
    return [...uni.values()]
  } else {
    const uni: any = {}
    arr.forEach(its => {
      const identifier = its.map((it) => ids.map(id => it[id]).join('|')).join(';')
        , data = uni[identifier] || []
      data.push(its)
      uni[identifier] = data
    })
    return Object.values(uni)
  }
}